package Thread;

public class Demo2 {
    public static void main(String[] args) throws InterruptedException {
        Thread thread=new Thread(()->{
        });
        System.out.println(thread.getState());
        thread.start();
        Thread.sleep(500);
        System.out.println(thread.getState());
    }
}
